from django.db import models
from apps.common.base.models import BaseModel

class Addr(BaseModel):

    user=models.ForeignKey("user.UserModel", related_name='addr_User', verbose_name='所属用户', on_delete=models.SET_NULL, null=True, blank=True, db_constraint=False)
    contactName=models.CharField("联系人姓名", max_length=200, blank=True)
    contactPhone=models.CharField("联系人电话", max_length=200, blank=True)
    province=models.CharField("省", max_length=200, blank=True)
    city=models.CharField("市", max_length=200, blank=True)
    region=models.CharField("区", max_length=200, blank=True)
    area=models.CharField("区域", max_length=200, blank=True)
    detailAddr=models.CharField("详细地址", max_length=200, blank=True)
    default=models.BooleanField('是否默认', default=False)

    class Meta:
        verbose_name = 'Addr'
        verbose_name_plural = verbose_name
